<!DOCTYPE html>
<html>
<body>

<svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="190">
    <polygon
            style="fill:lime;stroke:purple;stroke-width:5;fill-rule:evenodd;" />
</svg>
<script src="js/jquery-1.11.3.js"></script>
<script>

    $("polygon").attr("points","100,10 40,180 190,60 10,60 160,180");
</script>
</body>
</html>